'use strict';

angular.module('oaApp')
  .config(function ($stateProvider) {
    $stateProvider
      .state('app.projects', {
        url: '/projects',
        templateUrl: 'app/projects/projects.html',
        controller: 'ProjectsCtrl'
      })
      .state('app.projects-add', {
        url: '/projects/new',
        templateUrl: 'app/projects/add.html',
        controller: 'ProjectsAddCtrl'
      })
      .state('app.projects-detail', {
        url: '/projects/{projectId}',
        templateUrl: 'app/projects/detail.html',
        controller: 'ProjectsDetailCtrl'
      })
      .state('app.projects-edit', {
        url: '/projects/{projectId}/edit',
        templateUrl: 'app/projects/edit.html',
        controller: 'ProjectsEditCtrl'
      });
  });
